package com.fishery.refrigeratory.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fishery.refrigeratory.entity.Refrigeratory;
import com.fishery.refrigeratory.entity.RefrigeratoryInInfo;
import com.fishery.refrigeratory.entity.vo.ProductVo;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author wgz
 * @since 2021/1/20
 */



public interface RefrigeratoryService extends IService<Refrigeratory> {
    //创建冷库
    boolean createRefrigeratory(Refrigeratory refrigeratory);
    //修改冷库
    boolean updateRefrigeratory(Refrigeratory refrigeratory);
    //删除冷库
    boolean deleteRefrigeratory(String id);
    //根据冷库id查询冷库
    Refrigeratory getRefrigeratory(String id);
    //根据基地id获取冷库列表
    List<Refrigeratory> getRefrigeratoryByBaseId(String baseId);
    //查询所有冷库信息
    List<Refrigeratory> getAllRefrigeratory();
    //根据基地id分页查询冷库
    Page<Refrigeratory> PageRefrigeratoryByBaseId(String base_id, Integer page, Integer size);
    //得到所有的分页冷库
    Page<Refrigeratory> getAllPageRefrigeratory(Integer page, Integer size);
    //通过基地id获取所有冷库的面积
    Integer selectAllAreaByBaseId(String baseId);
    //通过基地id获取所有冷库的数量
    long selectAllRefrigeratoryCount(String baseId);
}
